package genetica.mutacion;

import genetica.cromosomas.Cromosoma;

public abstract class AlgoritmoMutacion implements Cloneable{
	protected double pMutacion;
	public AlgoritmoMutacion (double pMutacion){
		this.pMutacion = pMutacion;
	}
	/**
	 * Muta el gen que se le pasa por parametro
	 * @param original
	 */
	public abstract void mutacion(Cromosoma original);
	
	public void setPMutacion(double pMutacion){
		this.pMutacion = pMutacion;
	}
	
	public double getPMutacion(){
		return this.pMutacion;
	}
}
